#ifndef __SYSTEMEXCEP_H__
#define __SYSTEMEXCEP_H__

#include <main.h>

#include "commonRegister.h"

typedef struct
{
    uint32_t R0;
    uint32_t R1;
    uint32_t R2;
    uint32_t R3;

    uint32_t R12;

    uint32_t LR;
    uint32_t PC;
    uint32_t xPSR;
} StackFrame_t;

extern StackFrame_t frame;

void systemHardFaultErr(uint32_t *reg);

#endif
